<template>
  <view>
    <my-list :dataList="dataList"></my-list>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        dataList: [],
      };
    },
    onLoad(options) {
      this.getDataMyCollect()
    },
    methods: {
      getDataMyCollect() {
        var that = this;
        var token = uni.getStorageSync('token');
        uni.request({
          url: this.$config.baseApi + '/com/wx/collect/getDataMyCollect',
          method: 'get',
          data: {},
          header: {
            token: token
          },
          success: (res) => {
            that.dataList = res.data;
          }
        });
      }
    }
  }
</script>

<style lang="scss">

</style>